html{
    font-size: 16px;
}
.mobile{
    position: relative;
    width: 100%;
    height: 100%;
}
.flexBox{
    display: flex;
    justify-content: center;
    align-items: center;
}
.module{
    margin-top: 0.5rem;
    width: 100%;
    .main{
        margin: 0 1rem;
        
        .title{
            width: 100%;
            .content{
                flex-grow: 1;
                margin-right: 0.5rem;
                padding: 0.5rem 0;
                width: 100%;
                height: 2.5rem;
                text-align: left;
                font-size: 1rem;
                line-height: 1.3125rem;
                font-weight: bold;
                color: rgb(0, 0, 0);
            }
        }
    }
}
.user_touch_action{
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;

    opacity: 1;
    transition: opacity 0.15s;
}

// 轮播图底部页索引
.carousel-indicators{
    position: absolute;
    bottom: 0.625rem;
    margin: 0;
    li{
        margin: 0.1875rem;
        width: 0.375rem;
        height: 0.375rem;
        background-color: rgba(0, 0, 0, 0.2);
        border: 0;
        border-radius: 0.5rem;
    }
    .active{
        width: 0.625rem;
        background-color: rgba(255, 255, 255, 1);
    }
}



.header{
    width: 100%;
    position: relative;
    z-index: 3;
    flex: 1 1 0%;
    background-color: rgb(241, 243, 245);
    flex-direction: column;
    box-shadow: 0 1.25rem 1.25rem rgba(255, 255, 255, 0.5);
    .nav{
        justify-content: space-between;
        position: relative;
        z-index: 2;
        width: 100%;
        .main{
            position: relative;
            padding: 0 1rem;
            height: 3.625rem;
            width: 100%;
            .logo{
                margin-right: 1rem;
                width: 5rem;
                height: 1.5rem;
            }
            .search{
                flex-grow: 1;
                margin-right: 1rem;
                padding-left: 0.8125rem;
                height: 2.5rem;
                background-color: rgba(0, 0, 0, 0.05);
                border-radius: 1.25rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                .search_icon{
                    margin-right: 0.5rem;
                    width: 1rem;
                    height: 1rem;
                    background-image: url('/img/search.png');
                    background-size: 1rem 1rem;
                    background-repeat: no-repeat;
                    background-position: center center;
                }
                .search_text{
                    flex-grow: 1;
                    padding-right: 0.625rem;
                    opacity: 0.6;
                    font-size: 1rem;
                    color: rgb(0, 0, 0);
                    height: 1.375rem;
                    line-height: 1.375rem;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
            }
            .others{
                max-width: 7.5rem;
                height: 100%;
                position: relative;
                .others_chat,.others_surprise{
                    width: 1.5rem;
                    height: 1.5rem;
                    background-size: 1.5rem 1.5rem;
                    background-repeat: no-repeat;
                    background-position: center center;
                }
                .others_chat{
                    margin-right: 1.5rem;
                    background-image: url('/img/待评价.png');
                }
                .others_surprise{
                    background-image: url('/img/mobile/other_surprise.webp');
                }
            }
        }
    }
    .recommend_list{
        margin-top: 0;
        width: 100%;
        background-color: rgb(241, 243, 245);
        overflow: hidden;
        .main{
            justify-content: flex-start;
            padding: 0.25rem 0;
            height: 2.25rem;
            overflow-x: auto;
            overflow-y: hidden;
            background-color: rgb(241, 243, 245);
            a{
                flex-shrink: 0;
                display: block;
                margin-right: 0.5rem;
                padding: 0 0.5rem;
                height: 1.75rem;
                line-height: 1.75rem;
                text-align: center;
                border-radius: 0.875rem;
                background-color: rgba(0, 0, 0, 0.05);

                font-size: 0.75rem;
                color: rgb(0, 0, 0);
                opacity: 0.9;
            }
        }
        .main::-webkit-scrollbar{display: none;}
    }
}

.article{
    margin-top: -1px;
    padding-bottom: 3.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    justify-content: flex-start !important;
    min-height: 50.125rem;
    background-color: rgba(241, 243, 245, 1);
    
    // 轮播图
    .banner_carousel{
        .main{
            border-radius: 1rem;
            overflow-y: hidden;
            overflow-x: auto;
        }
    }

    // 总分类
    .category{
        .main{
            overflow-y: hidden;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
            .ca_container{
                width: 100%;
                flex-direction: column;
            }
            ul{
                justify-content: flex-start;
                align-items: flex-start;
                margin: 0;
                padding: 0;
                width: 100%;
                height: auto;
                list-style: none;
                li{
                    margin-bottom: 0.5rem;
                    flex-direction: column;
                    align-items: center;
                    flex-grow: 1;
                    flex-shrink: 0;
                    a{
                        display: block;
                        width: 3rem;
                        height: 3rem;
                        img{
                            width: 100%;
                            height: 100%;
                        }
                    }
                    span{
                        display: block;
                        margin: 0.25rem 0;
                        width: 4.4375rem;
                        font-size: 0.75rem;
                        text-align: center;
                        line-height: 1rem;
                        color: rgb(0, 0, 0);
                        opacity: 0.9;
                    }
                }
            }
        }
        .main::-webkit-scrollbar{height: 0.25rem;}
        .main::-webkit-scrollbar-thumb{background-color: rgb(207, 10, 44);border-radius: 1.1875rem;}
        .main::-webkit-scrollbar-track{background-color: rgb(255, 255, 255);}
    }

    // 限时购+秒杀
    .spike_limited_time{
        .main{
            padding-bottom: 0.25rem;
            background-color: rgb(255, 255, 255);
            border-radius: 1rem;
            .container{
                justify-content: space-between;
                padding: 0 0.75rem;
                width: 100%;
                .con_son{
                    flex-direction: column;
                    align-items: flex-start;
                    .title{
                        margin-top: 0.25rem;
                        height: 2.5rem;
                        justify-content: flex-start;
                        .head{
                            line-height: 1.3125rem;
                            font-size: 1rem;
                            font-weight: bold;
                            color: rgb(0, 0, 0);
                            text-overflow: clip;
                            white-space: nowrap;
                            opacity: 1;
                        }
                    }
                    .content{
                        margin: 0.75rem 0 0.625rem 0;
                        width: 100%;
                        .product_item{
                            flex-direction: column;
                            // margin-right: 0.5rem;
                            width: 50%;
                            text-align: center;
                            img{
                                padding: 0.5rem;
                                width: 90%;
                                height: 90%;
                            }
                            .price{
                                flex-direction: column;
                                width: 100%;
                                .newPrice{
                                    height: 1rem;
                                    font-size: 0.75rem;
                                    line-height: 1rem;
                                    font-weight: 600;
                                    color: rgb(207, 10, 44);
                                    vertical-align: middle;
                                }
                                .oldPrice{
                                    height: 0.75rem;
                                    line-height: 0.75rem;
                                    font-size: 0.5625rem;
                                    opacity: 0.4;
                                    color: rgb(0, 0, 0);
                                    text-decoration: line-through;
                                }
                            }
                        }
                    }
                }
                .limited_time_purchase{
                    width: 50%;
                    .title{
                        .tag{
                            display: block;
                            margin: 0 0.5rem 0 0.25rem;
                            padding: 0 0.25rem;
                            max-width: 6.46875rem;
                            height: 1rem;
                            line-height: 1rem;
                            font-size: 0.625rem;
                            color: rgb(0, 0, 0);
                            opacity: 0.9;
                            border-radius: 0.25rem;
                            background: rgba(237, 111, 33, 0.1);
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }
                    }
                }
                
                .spike{
                    width: 50%;
                    .title{
                        .countdown{
                            margin: 0 0.5rem 0 0.25rem;
                            .tag{
                                margin-right: 0.25rem;
                                line-height: 0.875rem;
                                font-size: 0.625rem;
                                color: rgb(0, 0, 0);
                            }
                            .timeBox{
                                color: rgb(207, 10, 44);
                                .time{
                                    display: block;
                                    width: 1rem;
                                    height: 1rem;
                                    text-align: center;
                                    font-size: 0.625rem;
                                    color: rgb(255, 255, 255);
                                    line-height: 1rem;
                                    opacity: 1;
                                    background-color: rgb(207, 10, 44);
                                    border-radius: 0.125rem;
                                }
                                .colon{
                                    margin: 0 0.125rem;
                                    padding-bottom: 0.125rem;
                                    font-size: 0.625rem;
                                    font-weight: 600;
                                    line-height: 0.875rem;
                                    vertical-align: middle;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    // 新人有礼 广告
    .ad{
        .ad_img{
            width: 100%;
            border-radius: 1rem;
            overflow: hidden;
            img{
                width: 100%;
                height: 100%;
            }
        }
    }

    // 旗舰新品
    .new_product{
        .main{
            flex-direction: column;
        
            // 标题
            .title{
                .content{
                    img{
                        width: 8.875rem;
                        height: 1.5rem;
                    }
                }
            }

            // 主要内容
            .new_product_module{
                width: 100%;
                justify-content: space-between;
                position: relative;
                top: -8.732px;
                .new_product_item{
                    margin-top: 8.732px;
                    width: 49%;
                    border-radius: 0.5rem;
                    overflow: hidden;
                    overflow-y: hidden;
                    overflow-x: auto;
                }
                .new_product_item_con{
                    align-items: flex-start;
                    align-content: space-between;
                    justify-content: center;
                    flex-direction: column;
                    flex-wrap: wrap;
                    width: 49%;
                }
                .img_small{
                    width: 100%;
                    // height: 126.15px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }
    }

    // 猜你喜欢
    .guess_you_like{
        .main{
            flex-direction: column;
            .product_list{
                position: relative;
                top: -8.231px;
                justify-content: space-between;
                align-items: flex-start;
                
                width: 100%;
                .product_list_left_con,.product_list_right_con{
                    flex-direction: column;
                    flex-grow: 1;
                    overflow-x: hidden;
                    overflow-y: auto;
                }
                .product_list_left,.product_list_right{
                    // margin-right: 0.5rem;
                    width: 49%;
                }
                .product_item{
                    flex-direction: column;
                    margin-top: 0.5rem;
                    // width: 10.9375rem;
                    width: 100%;
                    height: auto;
                    background-color: rgb(255, 255, 255);
                    border-radius: 0.5rem;
                    overflow: hidden;
                    .product_img{
                        position: relative;
                        justify-content: center;
                        align-items: center;
                        width: 100%;
                        margin: 1.25rem 0;
                        // height: 10.9375rem;
                        img{
                            width: 75%;
                            // height: 75%;
                        }
                    }
                    
                    .product_info{
                        padding: 0.5rem;
                        width: 100%;
                        flex-direction: column;
                        .tag_title{
                            -webkit-line-clamp: 2;
                            word-break: break-all;
                            overflow-wrap: break-word;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            justify-content: flex-start;
                            
                            height: 2.25rem;
                            line-height: 1.125rem;
                            font-size: 0.8125rem;
                            font-weight: bold;
                            color: rgb(0, 0, 0);
                            opacity: 0.9;
                            vertical-align: middle;
                            
                            .tag{
                                display: inline-block;
                                margin-right: 0.25rem;
                                padding: 0 0.25rem;
                                flex-shrink: 0;
                                max-width: 7.1875rem;
                                height: 0.8125rem;
                                line-height: 0.8125rem;
                                text-align: center;
                                font-size: 0.5625rem;
                                background-image: linear-gradient(1.5708rad, rgb(207, 10, 44), rgb(255, 45, 78));
                                border-radius: 0.25rem;
                                color: rgb(255, 255, 255);
                                overflow: hidden;
                            vertical-align: middle;
                            }
                            .product_title{
                                margin: 0;
                                font-weight: 600;
                            }
                        }
                        .product_dept{
                            height: 1rem;
                            line-height: 1rem;
                            font-size: 0.75rem;
                            opacity: 0.5;
                            color: rgb(0, 0, 0);
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }
                        .product_price{
                            margin-top: 0.375rem;
                            padding: 0.0625rem 0;
                            height: 1.3125rem;
                            text-align: left;
                            .new{
                                margin-right: 0.25rem;
                                line-height: 1.3125rem;
                                color: rgb(207, 10, 44);
                                font-size: 1rem;
                                font-weight: bold;
                                vertical-align: middle;
                            }
                            .old{
                                line-height: 1rem;
                                color: rgb(0, 0, 0);
                                font-size: 0.75rem;
                                text-decoration: line-through;
                                opacity: 0.5;
                                vertical-align: middle;
                            }
                        }
                        .bottom_tag{
                            justify-content: flex-start;
                            margin-top: 0.3125rem;
                            padding-right: 0.03125rem;
                            flex-wrap: wrap;
                            height: 0.875rem;
                            .tag{
                                margin-right: 0.25rem;
                                padding: 0 0.25rem;
                                flex-shrink: 0;
                                max-width: 7.1875rem;
                                height: 0.875rem;
                                line-height: 0.875rem;
                                text-align: center;
                                font-size: 0.5625rem;
                                border-radius: 0.25rem;
                                color: rgb(207, 10, 44);
                                overflow: hidden;
                                border: 0.0625rem solid rgba(207, 10, 44, 0.4);
                            }
                            .tag:last-child{margin-right: 0;}
                        }
                    }
                }
            }

            // 加载
            .product_list_load{
                padding: 1rem 0;
                width: 100%;
                justify-content: center;
                .load{
                    margin-right: 0.5rem;
                    width: 100%;
                    height: 1.5rem;
                    text-align: center;
                    font-size: 0.875rem;
                    line-height: 1rem;
                    color: rgb(0, 0, 0);
                    opacity: 0.6;
                }
            }
        }
    }
}

// 侧边-返回顶部
.aside{
    display: none;
    position: fixed;
    bottom: 4.375rem;
    right: 1rem;
    z-index: 1;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 1.1875rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
    background-color: rgb(255, 255, 255);
    .main{
        width: 100%;
        height: 100%;
        position: relative;
        img{
            width: 1rem;
            height: 1rem;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }    
    }
}

.footer{
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    z-index: 100000;

    margin: 0;
    // padding: 0 24px;
    width: 100vw;
    min-height: 3.5rem;
    border-top: 0.03125rem solid rgba(0, 0, 0, 0.05);
    background-color: rgb(241, 243, 245);
    .footer_tab{
        flex-grow: 1;
        .main{
            padding: 0 0.5rem;
            justify-content: center;
            align-items: center;
            height: 100%;
            flex-wrap: wrap;
            .icon{
                width: 1.5rem;
                height: 1.5rem;
                overflow: hidden;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            .footer_tab_name{
                margin: 0 0.5rem;
                text-align: center;
                font-size: 0.625rem;
                color: rgb(0, 0, 0);
                line-height: 0.875rem;
                opacity: 0.4;
            }
        }
    }
    
    .selected{
        .main{
            .footer_tab_name{
                color: rgb(207, 10, 44);
                opacity: 1;
                font-weight: bold;
            }
        }
    }
}